Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve usability #118

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Improve usability #118

wants to merge 3 commits into from

Conversation

alanorth
Copy link

@alanorth alanorth commented Nov 12, 2020

Minor usability improvements:

  • Remove executable bit from source files
  • Add executable bit to run_pipeline.py
  • Add python2 shebang to all Python scripts so they can be run without typing python2 blah.py (they already have an executable bit). Note that you can still run them with python2 manually if you want.

These changes improve the usability when installed system-wide in a multi-user cluster with many versions of Python available, etc.

Having them with +x makes the shell autocomplete them when the dir
is in the user's $PATH, which is an unnecessary nuissance.
This allows the shell to autocomplete the name of the script like
any other executable when the SALSA dir is in the user's $PATH.
These scripts are already executable due to their chmod +x, but they
are missing a shebang to tell the shell which interpreter is respons-
ible for executing them. The convention is to use the "env" command
to find an appropriate Python that may be in the user's environment
instead of hard coding a path, as the user might have a virtual env
loaded or might have Python 3 as the default "python" on the system.
@bgruening bgruening mentioned this pull request Jan 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant